.SUFFIXES: .C

CFLAGS  = # -DGNU_DL
CC      = etCC

.C.o:
	$(CC) $(CFLAGS) -c $<

OFILES  = \
	UnixSystem.o \
	UnixPtty.o \
	unixsys.o \
	unixpty.o \
	dynlink.o \
	TclInt.o

all:    unix.o mkpts

# don't use gcc (gnu CPP may not work for ioctl.h ttychars.h)
ptty.o:
	cc -c ptty.c

mkpts:  mkpts.c
	cc -o mkpts mkpts.c

pty:    pty.c
	cc -o pty pty.c

unix.o:  $(OFILES)
	$(CC) -r -o unix.o $(OFILES) -ltcl

install:
	 su root -c "chgrp utmp mkpts; chown bin mkpts; chmod 2755 mkpts"

#-------------------------------------------------------------------------------

depend:
	makedep -I.. -I../CONTAINER *.[cC]

clean:
	-rm -f core $(OFILES)

clobber:    clean
	-rm -f mkpts unix.o Makefile.bak .MAP/*

touch:
	$(MAKE) -t


# DO NOT DELETE THIS LINE -- make depend depends on it.

TclInt.o: ../Col.ph ../Class.h ../Object.h ../Types.h ../Storage.h
TclInt.o: ../System.h ../Time.h ../Main.h ../String.h ../CType.h
TclInt.o: ../FontEncoding.h ../RefCounted.h ../Env.h ../Symbol.h
TclInt.o: ../Rectangle.h ../Point.h ../Interpreter.h
UnixPtty.o: UnixPtty.h ../PttyConnection.h ../Object.h ../Types.h
UnixPtty.o: ../Storage.h ../Point.h ../Class.h ../File.h ../SysEvtHandler.h
UnixPtty.o: UnixSystem.h ../System.h ../Time.h ../Main.h ../Timer.h
UnixPtty.o: ../String.h ../CType.h ../FontEncoding.h ../RefCounted.h
UnixSystem.o: UnixSystem.h ../System.h ../Object.h ../Types.h ../Storage.h
UnixSystem.o: ../Time.h ../Main.h ../SysEvtHandler.h ../Timer.h ../String.h
UnixSystem.o: ../CType.h ../FontEncoding.h ../RefCounted.h ../Class.h
UnixSystem.o: ../Error.h ../ClassManager.h ../Env.h ../Symbol.h
UnixSystem.o: ../Rectangle.h ../Point.h ../Exception.h ../Math.h
UnixSystem.o: ../CONTAINER/OrdColl.h ../CONTAINER/SeqColl.h
UnixSystem.o: ../CONTAINER/Collection.h ../CONTAINER/Container.h
UnixSystem.o: ../CONTAINER/Iterator.h ../File.h UnixPtty.h
UnixSystem.o: ../PttyConnection.h
